package com.example.AOPTest.proxy.jdkTest;

import com.example.AOPTest.proxy.jdkTest.impl.RealSubject;

import java.lang.reflect.Proxy;

/**
 * description: JdkTest <br>
 * date: 2021/4/23 14:35 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */
public class JdkTest {
    public static void main(String[] args) {
        RealSubject realSubject = new RealSubject();
        System.out.println(realSubject.getClass());
        Subject subject = (Subject)new ProxyFactory(realSubject).getProxyInstance();
        System.out.println(subject.getClass());
        subject.request();
    }
}
